<?php
/**
 * 系統名稱: Lotto 系統
 * 檔案說明: 專案管理-修改
 * $Author$
 * $Id$
 *
 */
set_time_limit(0);
include_once("../config.inc.php");

session_start();
$_DBSite = "Master";
include_once(__DBConnect_File);
include_once(__Modules_Path."/Gamble.lib.php");
include_once(__Common_Path."/Lotto.inc.php");

//取得最新操盤序號
$_data["LottoID"] = (int)$_data["LottoID"];
if(empty($_data["LottoID"]))$_data["LottoID"] = 1;

$arrGamble = getNewGambleData($_data["LottoID"], 0);
if($arrGamble === false){
	ErrMsgOutputHTML("Error", "", 1);
}
$_data["GambleID"] = $arrGamble["ID"];

$strSuppleID = "-".(int)$_data["userid"];
$intSuppleWagerID = (int)$_data["suppleid"];
$_SESSION["Member_Info"] -> isHidden = "Y";
include("login.php");

$intLType = (int)$_arrLotto[$_data["LottoID"]]["LType"];
switch($intLType."_".$_data["Bet_Type"]){
	case "1_7":
	case "1_8":
	case "1_9":
	case "1_10":
	case "1_11":
		include("joinnumbercheckout_insert.php");
		break;

	case "1_31":
	case "1_32":
	case "1_33":
	case "1_34":
	case "1_35":
	case "1_36":
	case "1_37":
	case "1_38":
	case "1_39":
	case "1_40":
	case "1_41":
	case "1_42":
	case "1_43":
		include("10m15wager_insert.php");
		break;

	default:
		include("wager_insert.php");
		break;
}
?>